cmake_minimum_required(VERSION 3.0)

project(thread-pool)

set(CMAKE_CXX_STANDARD 11)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_subdirectory(threadpool)

add_executable(thread-pool example.cpp)

target_link_libraries(thread-pool threadpool)

add_executable(thread-pool2 example2.cpp)

target_link_libraries(thread-pool2
    pthread
)